package com.listsorter.test;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class FloatItem
{

   float value;

   FloatItem(float value)
   {
      this.value = value;
   }

   public float sortOrder()
   {
      return this.value;
   }

   public float customOrder()
   {
      return this.value;
   }

   public Float customOrder2()
   {
      return this.value;
   }

   public static List<FloatItem> getItemList()
   {
      Random r = new Random();
      List<FloatItem> list = new ArrayList<FloatItem>();
      for (int i = 15; i >= 0; i--)
      {
         list.add(new FloatItem(i * r.nextFloat()));

      }
      return list;
   }
}
